package entity

import (
	"hobby-mate/common"
)

// Post 帖子信息
type Post struct {
	PostId          string `json:"postId" form:"post_id"   gorm:"primary_key;comment:帖子唯一标识符"`
	CreateAccountId int    `json:"createAccountId" form:"create_account_id" gorm:"not null;comment:发布帖子的用户 ID"`
	Content         string `json:"content" form:"content"  gorm:"not null;comment:帖子内容"`
	common.BaseEntity
}

func (Post) TableName() string {
	return "t_post"
}
